<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	Dingdan dd = (Dingdan) request.getAttribute("dd");
boolean isEdit = "Y".equals(request.getAttribute("xsedit"));
String contextPath = request.getContextPath();
%>

<%@page import="com.zhangyj.entitis.Xiaoshou"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page import="com.zhangyj.entitis.Dingdan"%><table class="grid" style="width:800px">
<thead style="text-align:center">
	<tr>
		<th style="width:380px;">产品名称</th>
		<th style="width:80px">产品单价</th>
		<th  style="width:80px">数量</th>
		<th style="width:80px">总价</th>
		<th style="width:80px">总积分</th>
		<th style="width:50px">修改</th>
		<th style="width:50px">删除</th>
	</tr>
	</thead>
	<tbody>
	<%
		List<?> list = dd.getProductList();
		Iterator<?> iterator = list.iterator();
		while (iterator.hasNext()) {
			Xiaoshou xs = (Xiaoshou) iterator.next();
	%>
	<tr>
		<td><%=xs.getSpmc()%></td>
		<td style="text-align:right;"><%=xs.getSpdj()%></td>
		<td style="text-align:right;"><%=xs.getSpsl()%></td>
		<td style="text-align:right;"><%=xs.getSpzj()%></td>
		<td style="text-align:right;"><%=xs.getSpjf()%></td>
		<td style="text-align:center">
		<%if (isEdit) {%>
			<a href="javascript:void(0)" onclick="uf_editPro('<%=xs.getXsid() %>')">修改</a>
		<%} else {%>
			--
			<%} %>
		</td>
		<td style="text-align:center">
		<%if (isEdit) {%>
			<a href="<%=contextPath %>/order/delxs.do?xsid=<%=xs.getXsid() %>">删除</a>
			<%} else {%>
			--
			<%} %>
		</td>
	</tr>
	<%
		}
	%>
	</tbody>
</table>